using UnityEngine;

[ExecuteInEditMode]
public class EditAllcha : MonoBehaviour
{
	public bool isrunflag;

	public EditChaMode[] allchamode;

	private void Update()
	{
		if (isrunflag)
		{
			isrunflag = false;
			for (int i = 0; i < allchamode.Length; i++)
			{
				allchamode[i].isrunflag = true;
				allchamode[i].enabled = false;
				allchamode[i].enabled = true;
			}
		}
	}
}
